﻿<%@ Page Language="C#" AutoEventWireup="True" Codebehind="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Src="UserControl/Count.ascx" TagName="Count" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Member Framework</title>
    <link href="App_Themes/MainStyle/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
        <table width="700" border="0" align="center" bgcolor="#FFFFFF">
            <tr>
                <td height="13" align="center" valign="top" style="width: 287px">
                    <p>
                        进入权限测试，请登录</p>
                    <asp:LoginView ID="LoginView1" runat="server">
                        <LoggedInTemplate>
                            欢迎您，
                            <asp:LoginName ID="LoginName1" runat="server" />
                            <br />
                            <a href="MemberPortal/TestPrivilege.aspx">进入测试页面</a>
                            <br />
                            <br />
                            <asp:LoginStatus ID="LoginStatus1" runat="server" />
                            <br />
                        </LoggedInTemplate>
                        <AnonymousTemplate>
                            <asp:Login ID="Login1" runat="server" BackColor="#F7F7DE" BorderColor="#CCCC99" BorderStyle="Solid"
                                BorderWidth="1px" Font-Names="Verdana" Font-Size="10pt">
                                <TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                <LayoutTemplate>
                                    <table border="0" cellpadding="1" cellspacing="0">
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #6b696b">
                                                            登录</td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></td>
                                                        <td>
                                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                                ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="ctl01$Login1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label></td>
                                                        <td>
                                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="ctl01$Login1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 20px">
                                                            <asp:CheckBox ID="RememberMe" runat="server" Text="下次记住我。" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2" style="color: red">
                                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" colspan="2" style="height: 24px">
                                                            <span style="color: #0000ff; text-decoration: underline"><a href="ControlPanel/Member/UserReg.aspx">
                                                                立刻注册</a> </span>&nbsp;&nbsp;<a href="PwdRecovery.aspx">取回密码</a> &nbsp;&nbsp;
                                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="登录" ValidationGroup="ctl01$Login1" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:Login>
                        </AnonymousTemplate>
                        <RoleGroups>
                            <asp:RoleGroup Roles="Admin">
                                <ContentTemplate>
                                    你是管理员！！！<br />
                                    <a href="MemberPortal/TestPrivilege.aspx">进入测试页面</a>&nbsp;
                                    <asp:LoginStatus ID="LoginStatus2" runat="server" />
                                </ContentTemplate>
                            </asp:RoleGroup>
                        </RoleGroups>
                    </asp:LoginView>
                    <p>
                        <a href="ControlPanel/Default.aspx">
                            <br />
                            从这里管理中心首页</a></p>
                </td>
            </tr>
        </table>
        <div align="center">
            <a href="ControlPanel/Default.aspx"></a>
        </div>
        <br />
        <uc1:Count ID="Count1" runat="server"></uc1:Count>
        <div align="center">
            <!--Creative Commons License-->
            <a rel="license" target="licence" href="http://creativecommons.org/licenses/by-nc/2.5/cn/">
                </a><br />
            &nbsp;</div>
    </form>
</body>
</html>
